﻿<?php $this->headLink()->appendStylesheet($this->APP_STATIC_SERVER . '/skins/' . $this->APP_TEMPLATE . '/' . $this->APP_SKIN . '/css/' . 'product.css')?>
<?php $this->headLink()->appendStylesheet($this->APP_STATIC_SERVER . '/js/jquery.jqzoom/jquery.jqzoom.css')?>
<?php $this->headScript()->appendFile($this->APP_STATIC_SERVER . '/js/jquery.jqzoom/jquery.jqzoom.min.js')?>
<div id="m-center">
    <div id="product-details" class="center-box">
        <div class="box-title">
            <div class="wrapper">
                <ul class="breadcrumb">
                    <?php 
                    if($this->parentCategories){
                        foreach($this->parentCategories as $parent){
                    ?>
                    <li>
                        <a href="<?php $this->url($parent->getProperties(), 'product_product_category')?>">
                            <?php echo $parent->name ?>
                        </a>
                    </li>
                    <?php
                        }
                    }
                    ?>

                    <li class="last">
                        <?php echo $this->product->name ?>
                    </li> 
                </ul>
            </div>
        </div>
        <div class="box-container">
            <div class="product-thumbnail">
                <a href="<?php echo $this->product->image_original?>" title="<?php echo $this->product->name?>">
                    <img src="<?php echo $this->product->image_medium?>" alt="<?php echo $this->product->name?>"/>
                </a>
            </div>
            <h4 class="product-name">
                <?php echo $this->translate('product_name')?>:<span><?php echo $this->product->name ?></span>
            </h4>
            <h4 class="product-price">
                <?php echo $this->translate('product_price') ?>:<span><?php echo $this->product->price ?> VND</span>
            </h4>
            <h4 class="product-category">
                <?php echo $this->translate('product_category')?>:<span><?php echo $this->category->name ?></span>
            </h4>
            <h4 class="product-views">
                <?php echo $this->translate('product_num_views')?>:<span><?php echo $this->product->num_views?></span>
            </h4>
            <div class="product-buy">
                <a class="product-add-to-cart"href="#"><?php echo $this->translate('product_buy_it')?></a>
                <div class="clearfix"></div>
            </div>
            <?php 
            echo $this->rWidget(
                    'utility',
                    'fblikebutton',
                    array(
                        'url' => $this->url($this->product->getProperties(), 'product_product_details'),
                        'send' => false,
                        'show_faces' =>true,
                        'font' => 'arial',
                        'width' => 450
                    )
            )?>
            <div class="clearfix"></div>
            <div class="product-specification">
                <h3><?php echo $this->translate('product_details_sepecification')?></h3>
                <?php echo $this->product->specification ?></div>
            <?php
            echo $this->rWidget(
                    'utility', 
                    'fbcomment', 
                    array(
                        'url' => $this->url($this->product->getProperties(), 'product_product_details'),
                        'width' => '',
                        'num_posts' => 10,
                        'colorscheme' => 'light'
                        ))?>
            <?php
            //echo $this->rWidget('product', 'relate', array('productId' => $this->product->id))
            ?>
        </div>
    </div>
    <script type="text/javascript">
        $(document).ready(function(){
            $('.product-thumbnail a').jqzoom({  
                    zoomType: 'standard',  
                    lens:true,  
                    preloadImages: true,  
                    alwaysOn:false
                      
            }); 
        });
    </script>
    <?php echo $this->rWidget('product', 'relate', array('product_id' => $this->product->id, 'limit' => 10)) ?>
	<div class="m-center-footer">
        <h4>Thiết kế và thực hiện bởi <a href="http://idgit.com.vn">IDG-IT</a></h4>
    </div>
</div>